import request from '@/utils/request';

export async function getBatchProductByPage (params: any) {
    return request('/api/project/getBatchProductByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addBatchProduct (params: any) {
    return request('/api/project/addBatchProduct', {
    method: 'POST',
    data: params,
  });
}

export async function updateBatchProduct (params: any) {
    return request('/api/project/updateBatchProduct', {
    method: 'POST',
    data: params,
  });
}

export async function delBatchProduct (params: any) {
    return request('/api/project/delBatchProduct', {
    method: 'POST',
    data: params,
  });
}


export async function exportBatchProduct(params: any) {
    return request('/api/project/exportBatchProduct', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getBatchProductByPage, addBatchProduct, updateBatchProduct, delBatchProduct, exportBatchProduct }
